package com.example.figurehecheng.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 酒店信息表
 * </p>
 *
 * @author author
 * @since 2025-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel")
@ApiModel(value="Hotel对象", description="酒店信息表")
public class Hotel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "酒店ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "酒店名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "星级")
    @TableField("stars")
    private String stars;

    @ApiModelProperty(value = "标签，用逗号分隔，如：五星级,商务,会议")
    @TableField("tags")
    private String tags;

    @ApiModelProperty(value = "评分")
    @TableField("rating")
    private BigDecimal rating;

    @ApiModelProperty(value = "评论数量")
    @TableField("comment_count")
    private Integer commentCount;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_at")
    private LocalDateTime updatedAt;


}
